package com.zyg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data

public class Clazz {
    @TableId(value = "clazz_id",type= IdType.AUTO)
    private Integer clazzId;
    private String clazzName;
    private Grade grade;
    private Integer gradeId;
    // alt + insert
    public Clazz() {
    }

    public Clazz(String clazzName) {
        this.clazzName = clazzName;
    }

    public Clazz(Integer clazzId, String clazzName) {
        this.clazzId = clazzId;
        this.clazzName = clazzName;
    }
}
